import { request } from '@/utils/request'

// 获取游玩首页置顶攻略与周边景点列表
export function getPlayStrategyAndScenicSpotList() {
  return request('/m/travel/cms/index', 'POST')
}

// 获取游玩攻略列表
export function getPlayStrategyList() {
  return request('/m/travel/cms/gonglue', 'POST')
}

// 获取攻略详情
export function getPlayStrategyDetail(articleId) {
  return request('/m/travel/cms/gonglue/get', 'POST', { articleId })
}

// 获取交通指引
export function getTrafficGuide() {
  return request('/m/travel/cms/jiaotong', 'POST')
}

// 获取周边景点列表
export function getScenicSpotList() {
  return request('/m/travel/cms/jingdian', 'POST')
}

// 获取周边景点详情
export function getScenicSpotDetail(articleId) {
  return request('/m/travel/cms/jingdian/get', 'POST', { articleId })
}

// 获取地图景点详情
export function getMapScenicSpotDetail(jingdianId) {
  return request('/m/community/ditu/jingdian/get', 'POST', { jingdianId })
}

// 获取停车指引列表
export function getParkingGuideList() {
  return request('/m/travel/cms/tingche', 'POST')
}

// 喜欢景点
export function xihuanScenicSpot(articleId) {
  return request('/m/travel/jingdian/xihuan', 'POST', { articleId })
}

// 收藏景点
export function shoucangScenicSpot(articleId) {
  return request('/travel/jingdian/shoucang', 'POST', { articleId })
}

// 点赞攻略
export function dianzanGonglue(articleId) {
  return request('/m/travel/strategy/dianzan', 'POST', { articleId })
}

// 喜欢攻略
export function xihuanGonglue(articleId) {
  return request('/m/travel/strategy/xihuan', 'POST', { articleId })
}

// 收藏攻略
export function shoucangGonglue(articleId) {
  return request('/travel/strategy/shoucang', 'POST', { articleId })
}
